<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/JsBarcode.js"></script>
</head>
<body>
    <img src="" alt="" id="logo">
    <script>
        // JsBarcode(img的DOM对象,条形码的值,options)
        // 条形码的值表示的是product中的no编号
        var logo=document.getElementById("logo");
        JsBarcode(logo,"114062006345",{
            format:"CODE128",
            displayValue:true,
            fontSize:12,
            height:40
        });
    </script>
</body>
</html>